﻿@model IEnumerable<ITProject.WebUI.Models.Account.UserListViewModel>
@using ITProject.WebUI.Infrastructure.HtmlHelpers
@{
    ViewBag.Title = "Lista użytkowników";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Lista Użytkowników</h2>
@foreach(var item in Model)
{
<div class="UserList">
<p class="ListLogin"> @item.Login </p>
<p class="ListName">( @item.FirstName @item.LastName )</p>
<p class="ListAvatar">
        @{
            string a = item.Avatar;
            string av = "background-image:url(\"" + @Url.Content("~/UserFiles/Avatars/" + a) + "\"); background-repeat:no-repeat;";
        }
        @Html.ActionLink("profil",MVC.Account.ActionNames.Profil,MVC.Account.Name,new {  Login = @item.Login}, new { @class = "LinkObrazek",@style=av })
</p>
<p class="ListCity">@item.City ( @item.Country )</p>

@Html.ActionLink("profil", MVC.Account.ActionNames.Profil, MVC.Account.Name, new {  Login = @item.Login}, new { @class = "BProfil" }) 
@Html.ActionLink("wiadomosci", MVC.Message.ActionNames.Send, MVC.Message.Name, new { receiverUserName = @item.Login }, new { @class = "BMessage" })

</div>

 }


    @{
    int il=Html.GetUserSite();
    }
 <p class="stronicowanie">
    @for(int i=1;i<=il;i++)
    {
       
       @Html.ActionLink("["+i.ToString()+"]", MVC.Account.ActionNames.UserList, MVC.Account.Name, new { str = i },null)
          
     }  
</p>

